/* $Id: UpgradeActivity.java 85 2007-12-20 06:50:58Z osborn.steven $
 * 
 * Undroid Package Manager
 *
 * Copyright 2007 Steven Osborn
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 */
package com.bitsetters.undroid;

import com.bitsetters.undroid.common.CommonMenu;
import com.bitsetters.undroid.common.Footer;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;

/**
 * Upgrade activity.
 *
 * Displays a list of applications that need to be upgraded.
 *
 * @author Steven Osborn - http://steven.bitsetters.com 
 */
public class UpgradeActivity extends Activity {
    
    /**
     * 
     */
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        
        setContentView(R.layout.upgrade);
        Footer.setup(this);
    }
    
    /**
     * 
     */
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        super.onCreateOptionsMenu(menu);
        return CommonMenu.createMenu(this, menu);
    }

    /**
     * 
     */
    @Override
    public boolean onOptionsItemSelected(Menu.Item item) {
        return CommonMenu.handleOption(item);
    }
}
